package com.lyun.graduation;

import android.os.Bundle;
import android.widget.LinearLayout;

import androidx.appcompat.app.AppCompatActivity;

import com.just.agentweb.AgentWeb;

public class MainActivity extends AppCompatActivity {

    AgentWeb mAgentWeb;

    LinearLayout ll;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        init();
    }

    public void init() {
        ll = this.findViewById(R.id.ll);
        mAgentWeb = AgentWeb.with(this)
                .setAgentWebParent((LinearLayout) ll, new LinearLayout.LayoutParams(-1, -1))
                .useDefaultIndicator()
                .createAgentWeb()
                .ready()
                .go("http://www.baidu .com");
    }
}